BIN=main
CC=g++
FLAGS=-std=c++11 -Wall
LD=-o
HEAD=$(shell ls *.h)
$(BIN):$(HEAD)
	$(CC) $(LD) $(BIN) $(HEAD) $(FLAGS)
.PHONY:clean
clean:
	rm -rf $(BIN)
